<template>
  <router-view v-if="isRouterActive" :key="$route.fullPath" />
</template>
<script>
export default {
  provide () {
    return {
      reload: this.reload
    }
  },
  data () {
    return {
      isRouterActive: true
    }
  },
  methods: {
    reload () {
      this.isRouterActive = false
      const _self = this
      this.$nextTick(function() {
        _self.isRouterActive = true
      })
    }
  }
}
</script>

<style></style>
